//
//  endScreen.cpp
//  CodeLab2013_prep08
//
//  Created by Matthew Parker on 4/1/13.
//
//

#include "endScreen.h"
#include "testApp.h"

endScreen::endScreen():
screen(){
    font.loadFont("verdana.ttf", 24);
    str = "Congrats, you win!\nPress SPACE to restart";
}

void endScreen::setup(){
    
}

void endScreen::update(){
    
}

void endScreen::draw(){
    ofBackground(125, 255, 125);
    
    ofSetColor(0);
    font.drawString(str, 200, 200);
}

void endScreen::keyPressed(int key){
    
    if(key == 32){
        testApp* app = (testApp*)ofGetAppPtr();
        app->currentScreen = &app->intro;
    }
}
